package practice;

import java.util.Arrays;
import java.util.Collection;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

@RunWith(Parameterized.class)
public class JunitParameters {
	
  String name;
  int age;
  
  public JunitParameters(String name,int age){
	  
	  this.name=name;
	  this.age=age;
	  
  }
	
   @Test
   public void shouldAbleToPrintDifferentParameterValues(){
	   
	   System.out.println("Name:"+name);
	   System.out.println("Age:"+age);
   }

   @Parameters
   public static  Collection<Object[]> getData(){
	   
	   Object[][] data=new Object[2][2];
	   
	   data[0][0]="Bharat";
	   data[0][1]=33;
	   
	   data[1][0]="Nithimoni";
	   data[1][1]=29;
	   
	   return Arrays.asList(data);
	   
   }
   
}
